package com.gbx.databinding;

import android.view.View;
import android.widget.Toast;

/**
 * Created by baoxing on 2016/11/30.
 */
public class User {
    private String name;
    private String address;
    private String email;
    private String phone;
    private String icon;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public User(String name, String address, String email, String phone) {

        this.name = name;
        this.address = address;
        this.email = email;
        this.phone = phone;
    }
    public String getFormatName() {
        return "用户名" + name;
    }
    public void clickName(View view) {
        Toast.makeText(view.getContext(), "name: " + name, Toast.LENGTH_SHORT).show();
    }
}
